home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / program / rcs5ap1s.lzh / CONF.ST < prev    next >
Text File  |  1991-01-30  |  6KB  |  150 lines

  1. /* example RCS compile-time configuration */
  2.  
  3.     /* $Id: conf.st,v 1.5 91/01/30 12:04:02 apratt Exp $ */
  4.  
  5. /*
  6.  * This is an example RCS compile-time configuration.
  7.  * If you can't get conf.sh to work as described in the Makefile,
  8.  * copy this file to conf.h and edit conf.h by hand.
  9.  */
  10.  
  11. #define exitmain(n) return n /* how to exit from main() */
  12. #if !MAKEDEPEND
  13. #    include <stdio.h>
  14. #    include <sys/types.h>
  15. #    include <sys/stat.h>
  16. #    include <fcntl.h>
  17. #    include <limits.h>
  18. #    include <stdlib.h>
  19. #    include <string.h>
  20. #    include <unistd.h>
  21.     /* #include <vfork.h> does not work.  */
  22. #endif /* !MAKEDEPEND */
  23. #define has_tmpnam 1    /* does tmpnam() work? (if not, mktemp is used) */
  24. #define has_sys_dir_h 1 /* Does #include <sys/dir.h> work?  */
  25. #define has_sys_param_h 1 /* Does #include <sys/param.h> work?  */
  26. #define has_sys_wait_h 0 /* Does #include <sys/wait.h> work?  */
  27. /* #define const */ /* The 'const' keyword works.  */
  28. /* #define volatile */ /* The 'volatile' keyword works.  */
  29. /* typedef int gid_t; */ /* Standard headers define gid_t.  */
  30. typedef u_short mode_t; /* Standard headers define mode_t.  */
  31. /* typedef int pid_t; */ /* Standard headers define pid_t.  */
  32. /* typedef int sig_atomic_t; */ /* Standard headers define sig_atomic_t.  */
  33. /* typedef int size_t; */ /* Standard headers define size_t.  */
  34. /* typedef long time_t; */ /* Standard headers define time_t.  */
  35. /* typedef int uid_t; */ /* Standard headers define uid_t.  */
  36. #define has_prototypes 1 /* Do function prototypes work?  */
  37. #if has_prototypes
  38. #    define P(params) params
  39. #    if !MAKEDEPEND
  40. #        include <stdarg.h>
  41. #    endif
  42. #    define vararg_start(ap,p) va_start(ap,p)
  43. #else
  44. #    define P(params) ()
  45. #    if !MAKEDEPEND
  46. #        include <varargs.h>
  47. #    endif
  48. #    define vararg_start(ap,p) va_start(ap)
  49. #endif
  50. #define has_getuid 0 /* Does getuid() work?  */
  51. #define declare_getpwuid struct passwd *getpwuid P((int));
  52. #define has_rename 1 /* Does rename() work?  */
  53. #define bad_rename 1 /* Does rename(A,B) fail if B exists?  */
  54. #define VOID (void) /* 'VOID e;' discards the value of an expression 'e'.  */
  55. #define signal_type void /* type returned by signal handlers */
  56. #define sig_zaps_handler 0 /* Must a signal handler reinvoke signal()?  */
  57. #define has_seteuid 0 /* Does seteuid() obey Posix 1003.1-1990?  */
  58. #define has_sigaction 0 /* Does struct sigaction work?  */
  59. #define has_sigblock 0 /* Does sigblock() work?  */
  60. #define has_sys_siglist 0 /* Does sys_siglist[] work?  */
  61. #define exit_type void /* type returned by exit() */
  62. #define underscore_exit_type void /* type returned by _exit() */
  63. typedef size_t fread_type; /* type returned by fread() and fwrite() */
  64. typedef void *malloc_type; /* type returned by malloc() */
  65. #define free_type void /* type returned by free() */
  66. typedef size_t strlen_type; /* type returned by strlen() */
  67. #define has_getcwd 1 /* Does getcwd() work?  */
  68. #define has_getwd 1 /* Does getwd() work?  */
  69. #define has_vfork 0 /* Does vfork() work?  */
  70. #define has_vfprintf 1 /* Does vfprintf() work?  */
  71. #define CO "co" /* name of 'co' program */
  72. #define COMPAT2 0 /* Are version 2 files supported?  */
  73. #define DATEFORM "%.2d.%.2d.%.2d.%.2d.%.2d.%.2d" /* e.g. 01.01.01.01.01.01 */
  74. #define DIFF "diff" /* name of 'diff' program */
  75. #define DIFF_FLAGS , "-n" /* Make diff output suitable for RCS.  */
  76. #define DIFF_L 1 /* Does diff -L work? */
  77. #define EXECRCS execv /* variant of execv() to use on subprograms */
  78. #define MERGE "merge" /* name of 'merge' program */
  79. #define RCSDIR "RCS\\" /* subdirectory for RCS files */
  80. #define SLASH '\\' /* path name separator */
  81. #define TMPDIR "/tmp/" /* default directory for temporary files */
  82. #define DIFF_PATH_HARDWIRED 1 /* Is DIFF absolute, not relative?  */
  83. #define ROOTPATH(p) ((p)[0]==SLASH)
  84. #define RCSSEP ',' /* separator for RCSSUF */
  85. #define SENDMAIL "/bin/mail" /* how to send mail */
  86.  
  87. /* AKP: added switches to control things I needed to make this work on      */
  88. /* a mostly-ANSI, partly-POSIX, but not-UNIX, system. Leave them all zero */
  89. /* to get the distribution code for the features they control.          */
  90.  
  91. /* HEAD_REV is added so you can say "rcs -nRELEASE:head *.c" to do the    */
  92. /* same thing that rcsfreeze does: apply the name to the head revision of */
  93. /* each named file.  'head' is special-cased in the function lookupsym,      */
  94. /* and applies anywhere a symbolic revision spec can be used.          */
  95.  
  96. #define DONT_USE_SIGNALS 1    /* 1=just ignore signal handling */
  97. #define DONT_USE_FORK 1        /* 1=use system() instead */
  98. #define DONT_USE_MAIL 1        /* 1=ask the user to tell lock holder */
  99. #define ANSI_INCLUDE_FILES 1    /* 1=don't redeclare ANSI stuff in headers */
  100. #define USE_AKP_PAIRS 1        /* 1=use 8.3 filename pair code */
  101. #define HEAD_REV 1        /* 1=allow "head" as revision name */
  102. #define terrible_rename 1    /* 1=rename(A,B) fails if A is read-only */
  103. #define bad_unlink 1        /* 1=unlink(A) fails if A is read-only */
  104. #define AKP_MODES 1        /* 1=define WORKMODE per gcc lib, not unix */
  105. #define AKP_BUGFIXES 1        /* 1=enable misc AKP bug fixes */
  106.  
  107. /* these defines are for Atari TOS, where system() just returns the exit code. */
  108. #if DONT_USE_FORK
  109. #ifdef WIFEXITED
  110. #  undef WIFEXITED
  111. #endif
  112. #ifdef WEXITSTATUS
  113. #  undef WEXITSTATUS
  114. #endif
  115.  
  116. #define WIFEXITED(stat_val) ((stat_val) >= 0)
  117. #define WEXITSTATUS(stat_val) (stat_val)
  118.  
  119. /* end if DONT_USE_FORK */
  120. #endif
  121.  
  122. #if !ANSI_INCLUDE_FILES
  123. #if 0 /* These agree with <stdio.h>.  */
  124.     int fprintf P((FILE*,const char*,...));
  125.     int printf P((const char*,...));
  126. #    if has_vfprintf
  127.         int vfprintf P((FILE*,const char*,...));
  128. #    else
  129.         void _doprnt P((const char*,...));
  130. #    endif
  131. #endif
  132. #if 0
  133. char *sprintf P((char*,const char*,...));
  134. int chmod P((const char*,mode_t));
  135. int fcntl P((int,int,...));
  136. int open P((const char*,int,...));
  137. mode_t umask P((mode_t));
  138. pid_t wait P((int*));
  139. #endif
  140. #ifndef O_CREAT
  141.     int creat P((const char*,mode_t));
  142. #endif
  143. #if has_seteuid
  144.     int setegid P((gid_t));
  145.     int seteuid P((uid_t));
  146. #endif
  147.  
  148. /* end if !ANSI_INCLUDE_FILES */
  149. #endif
  150.